package com.eascs.web.o2o.web.controller;

import java.util.List;

import javax.inject.Inject;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.eascs.site.controller.BaseRestController;
import com.eascs.site.view.BaseRestResult;
import com.eascs.web.o2o.web.service.impl.SelectDataServiceImpl;

@Controller
@RequestMapping("/common")
public class LoanCommonController extends BaseRestController {
	
	@Inject
	SelectDataServiceImpl selectDataService;

	/**
	 * @Title: findCityByProvinceCode
	 * @Description: 通过省区code，查询市区信息
	 * @author lwx
	 * @param provinceCode
	 * @return
	 * @return List<Object[]>
	 * @throws @date
	 *             2016年6月1日 下午2:33:12
	 */
	@RequestMapping(value = "/findCityByProvinceCode")
	public BaseRestResult<List<Object[]>> findCityByProvinceCode(String provinceCode) {
		List<Object[]> data = selectDataService.getDataSouce("city", provinceCode);
		return BaseRestResult.buildRestResult(data);

	}


}
